#include <iostream>
using namespace std;

class Point {
public:
	Point() {};
	Point(int x, int y);
	void print();
	Point operator--(int);
	Point operator-(Point p);
private:
	int x, y;
};

Point::Point(int x, int y) : x(x), y(y) { }

void Point::print() {
	cout << this->x << ", " << this->y << endl;
}

Point Point::operator--(int) {
	Point temp = *this;
	this->x--;
	this->y--;
	return temp;
}

Point Point::operator-(Point p) {
	Point temp;
	temp.x = this->x - p.x;
	temp.y = this->y - p.y;
	return temp;
}

//int main() {
//	Point p1(1, 1), p2(3, 3);
//	p1--;
//	p1.print();
//
//	p2 = p2 - p1;
//	p2.print();
//	return 0;
//}